﻿using CommonEntity;
using CommonLibary;
using RabbitMQPlugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetCroe6WebAPITestOneBusiness
{
    public class RabbitMQTestBusiness:BaseBusiness
    {
        public RabbitMQTestBusiness(LoggerSingletonHelper loggerSingletonHelper) : base(loggerSingletonHelper)
        {
        }

        public ViewModelBase SendMessage(string message) {
            return DoFunc<ViewModelBase>(() => {
                ViewModelBase vb = new ViewModelBase();
                var rbq = new RabbitMQHelper();
                //rbq.SendMessageDirect(message);
                return vb;
            });
        }
    }
}
